﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Manageweb/MemberMaster.master" AutoEventWireup="true" CodeFile="ViewBuyCoffeeRecords.aspx.cs" Inherits="Manageweb_Coffee_ViewBuyCoffeeRecords" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
    <title>购买咖啡机记录列表</title>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <div  style="width:750px; text-align:right; padding-bottom:8px"><a runat="server" href="BuyCoffee.aspx">返回</a></div>
<asp:GridView ID="GV_CoffeeList" runat="server" AllowPaging="True" AllowSorting="True"
                        AutoGenerateColumns="False" CellPadding="4" ForeColor="#333333" Width="100%"
                        EmptyDataText="暂无数据" onpageindexchanging="GV_CoffeeList_PageIndexChanging" 
                        PageSize="15" >
                        <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                        <RowStyle BackColor="#EFF3FB" />
                        <Columns>
                            <asp:BoundField DataField="stockname" HeaderText="咖啡机" />
                            <asp:BoundField DataField="cmoney" HeaderText="单价" />
                            <asp:BoundField DataField="count" HeaderText="数量" />
                            <asp:BoundField DataField="dealtime" HeaderText="日期" 
                                DataFormatString="{0:yyyy-MM-dd}" />
                            <asp:TemplateField HeaderText="消费金额">
                            <ItemTemplate>
                              <%# Convert.ToInt32( Eval("count")) * Convert.ToDecimal( Eval("cmoney"))%>
                            </ItemTemplate>
                            </asp:TemplateField>
                        </Columns>
                        <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
                        <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
                        <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                        <EditRowStyle BackColor="#2461BF" />
                        <AlternatingRowStyle BackColor="White" />
                    </asp:GridView>
</asp:Content>

